Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix jupyter systemd redirect and conda env #113

Merged

Conversation

dennishuo
Copy link
Contributor

No description provided.

dennishuo added 2 commits May 10, 2017 20:38
The piping is a shell command, but systemd runs ExecStart shell-less,
so the redirect must be embedded in a /bin/bash exec command.
Default environment variables running jupyter will not pick up the
configured conda environment, and actual PySpark jobs will see an
error like "Python in worker has different version 2.7 than that
in driver 3.5, PySpark cannot run with different minor versions".
Since it's tricky to otherwise get the conda environment inline,
it's now a good reason to use the helper script as the ExecStart
command rather than fitting it inline in the .service file. Also,
add a "systemctl status" check at the end since otherwise a failed
exec won't propagate to the init action's error status.
@dennishuo dennishuo merged commit d592d80 into GoogleCloudDataproc:master May 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants